/**
 * Diego Yon 10070
 * Algoritmos y Estructura de Datos
 * Hoja de Trabajo 5
 */
/**
 * @author Diego Yon
 */
import static org.junit.Assert.*;
import org.junit.Test;

public class CircularListTest {
	
	CircularList<Integer> cola= new CircularList<Integer>();
	
	@Test
	public void testAddLast(){
		cola.addLast(0);
		assertEquals(cola.count,1);
	}
	
	@Test
	public void testAddFirst(){
		cola.addFirst(6);
		assertEquals(cola.count,1);
	}
	
	@Test
	public void testRemoveLast(){
		cola.addFirst(1);
		cola.removeLast();
		assertEquals(cola.count,0);
	}
}
